package com.tongjie.hotelbooking.dto;

import com.tongjie.hotelbooking.order.entity.OrderType;
import com.tongjie.hotelbooking.order.entity.RoomInfo;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

@Data
public class CreateOrderRequest {
    private OrderType orderType;
    private String orderNumber;
    private String[] region;
    private String hotelName;
    private String plannedCheckInDate;
    private String plannedCheckOutDate;
    private Integer dayCount;
    private BigDecimal singleRoomBudget;
    private List<RoomInfo> roomInfos = new ArrayList<>();
    private Integer totalRoomCount;
    private Integer totalPeopleCount;
    private Integer kidCount;
    private BigDecimal additionalBudget;
    private BigDecimal totalBudget;
    private Boolean needBreakfast = Boolean.FALSE;
    private Boolean noSmoking = Boolean.FALSE;
    private Boolean needHotelInvoice = Boolean.FALSE;
    private String arriveTime;
    private Boolean allowedHousemate = Boolean.FALSE;
    private BigDecimal amount;
    private Date createTime;

    @Data
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    public static class CheckInPerson {
        private String personName;
        private String personType;
    }

}
